<template>
  <div>
    <el-col :span="24">
      <Tabs value="name1" id="div">
        <TabPane label="基本信息" name="name1">
          <!--一行-->
          <el-row class="row">
            <div class="center">
              <el-row :gutter="20">
                <el-col :span="2" :offset="22">
                </el-col>
              </el-row>
              <el-row :gutter="20">

                <el-col :span="24" style="padding-top: 20px">
                  <el-col :span="11">
                    <el-col :span="6">
                      <span>医院名称</span>
                    </el-col>
                    <el-col :span="15">
                      <input type="text" class="search-input" value="上海交通大学医学院附属瑞金医院">
                    </el-col>
                  </el-col>
                  <el-col :span="11" :offset="2">
                    <el-col :span="6">
                      <span>等级</span>
                    </el-col>
                    <el-col :span="15">
                      <input type="text" class="search-input" value="三甲医院">
                    </el-col>
                  </el-col>
                </el-col>
                <el-col :span="24" style="padding-top: 20px;padding-bottom: 50px">
                  <el-col :span="11">
                    <el-col :span="6">
                      <span>地址</span>
                    </el-col>
                    <el-col :span="15">
                      <input type="text" class="search-input" value="上海市杨浦控江路">
                    </el-col>
                  </el-col>
                  <el-col :span="11" :offset="2">
                    <el-col :span="6">
                      <span>病床数</span>
                    </el-col>
                    <el-col :span="15">
                      <input type="text" class="search-input" value="8000">
                    </el-col>
                  </el-col>
                </el-col>
              </el-row>
            </div>
          </el-row>
          <!--四行-->
          <el-row class="row">
            <div class="center" style="padding-bottom: 70px">
              <el-row :gutter="20">
                <el-col :span="24">
                  <div class="h">
                    <h4>医院医生</h4>
                  </div>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="24" style="padding-top: 20px">
                  <Doctors></Doctors>
                </el-col>
              </el-row>

            </div>
          </el-row>

        </TabPane>
        <TabPane class="label" label="销量信息" name="name2">
          <!--二行-->
          <el-row class="row">
            <el-col :span="11">
              <div class="center">
                <el-row>
                  <el-col :span="24" class="h">
                    <p>销量（万元）</p>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-card shadow="hover" :body-style="{ height: '100%'}">
                      <div :style="{width: '100%', height: '400px'}">
                        <Distribute></Distribute>
                      </div>
                    </el-card>
                  </el-col>
                </el-row>
              </div>
            </el-col>

            <el-col :span="11" :offset="2">
              <div class="center">
                <el-row>
                  <el-col :span="24" class="h">
                    <p>达成（百分比）</p>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-card shadow="hover" :body-style="{ height: '100%'}">
                      <div :style="{width: '100%', height: '400px'}">
                        <Circler></Circler>
                      </div>
                    </el-card>
                  </el-col>
                </el-row>
              </div>
            </el-col>

          </el-row>
          <!--三行-->
          <el-row class="row">
            <el-col :span="11">
              <div class="center">
                <el-row>
                  <el-col :span="24" class="h">
                    <p>增长（万元）</p>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-card shadow="hover" :body-style="{ height: '100%'}">
                      <div :style="{width: '100%', height: '400px'}">
                        <Column></Column>
                      </div>
                    </el-card>
                  </el-col>
                </el-row>
              </div>
            </el-col>

            <el-col :span="11" :offset="2">
              <div class="center">
                <el-row>
                  <el-col :span="24" class="h">
                    <p>同比/环比（百分比）</p>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-card shadow="hover" :body-style="{ height: '100%'}">
                      <div :style="{width: '100%', height: '400px'}">
                        <brokenLine></brokenLine>
                      </div>
                    </el-card>
                  </el-col>
                </el-row>
              </div>
            </el-col>

          </el-row>
        </TabPane>
      </Tabs>
    </el-col>
  </div>
</template>

<script>
  import Distribute from './distribute'
  import Circler from './circler'
  import Column from './column'
  import brokenLine from './brokenLine'
  import Doctors from './doctors'
  export default {
    components: {
      Distribute,Circler,Column,brokenLine,Doctors
    },
    data() {
      return {
        activea:true,
        activeb:false,
      }
    },
    methods:{
      isActivea(){
        this.activea = true;
        this.activeb = false;
        this.activec = false;
        this.actived = false
      },
      isActiveb(){
        this.activea = false;
        this.activeb = true;
        this.activec = false;
        this.actived = false
      },
    }
  }
</script>

<style scoped>
  .activea{
    background-color: rgba(0,0,0,.3)
  }
  .activeb{
    background-color: rgba(0,0,0,.3)
  }

  .basic {
    background-color: rgba(245, 245, 248, 0.1);
    margin-top: 50px;
  }
  .basic > div {
    color: #fff;
    padding: 15px 20px;
  }
  .row {
    padding-bottom: 30px;
  }
  .center {
    padding: 10px 40px;
    color: #fff;
    border-radius: 10px;
    background-image: url("../../../assets/blur-bg-blurred.jpg");
  }
  .h {
    border-bottom: 2px solid #fff;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
  }
  .el-button {
    background: #1f9f91;
    border: none;
    color: #fff;
    font-size: 18px;
  }
  span {
    display: inline-block;
    height: 25px;
    font-size: 16px;
  }
  .search-input {
    margin-left: -8px;
    padding-left: 8px;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .15);
    height: 30px;
    width: 100%;
  }
  .el-card{
    background-color: rgba(245, 245, 248, 0);
    border: none;
  }
</style>
<style>
  .ivu-tabs-nav{
    width: 100%;
  }
  #div>.ivu-tabs-bar>.ivu-tabs-nav-container>.ivu-tabs-nav-wrap>.ivu-tabs-nav-scroll>.ivu-tabs-nav>div{
    width: 50%;
    text-align: center;
  }
  .ivu-tabs-tab{
    color: #fff;
    font-size: 20px;
  }
  .ivu-tabs-ink-bar{
    background-color: #e85656!important;
    height: 5px!important;
    position: absolute!important;
    left: 0!important;
    bottom: -5px!important;
  }
  .ivu-tabs-nav .ivu-tabs-tab-active{
    color: #fff!important;
    font-weight: bold!important;
  }
  .ivu-tabs-nav {
    border-bottom: 5px solid #fff!important;
  }
  .el-collapse-item__header{
    background-color: rgba(245, 245, 248, 0) !important;
    color: #fff!important;
  }
  .el-collapse-item__wrap{
    background-color: rgba(245, 245, 248, 0)!important;
    color: #fff!important;
  }
  .el-collapse-item__content{
    color: #fff!important;
  }
</style>
